package com.spring.security.study.security_test.service.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spring.security.study.security_test.api.SysUser;
import com.spring.security.study.security_test.mapper.SysUserMapper;
import com.spring.security.study.security_test.service.SysUserService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 系统用户表 服务实现类
 * </p>
 *
 * @author lby
 * @since 2021-01-11
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {

    @Override
    public Boolean saveUserRole(Integer userId, Integer roleId) {
        return baseMapper.saveUserRole(userId,roleId);
    }

    @Override
    public Integer countUsers(SysUser sysUser) {
        return baseMapper.countUsers(sysUser);
    }
}
